package com.zhaojp.demo.domain;

import com.alibaba.fastjson.annotation.JSONField;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;

@Data
@ApiModel(value = "用户对象", description = "用户对象说明")
public class User {

    @ApiModelProperty(name = "id", value = "用户ID", required = true, example = "1")
    private Integer id;
    @ApiModelProperty(name = "name", value = "用户姓名", required = true, example = "张三")
    private String name;
    @ApiModelProperty(name = "birthday", value = "用户生日", example = "1990-11-11 10:10:10")
    @JSONField(format = "yyyy-MM-dd")
    private Date birthday;
    @ApiModelProperty(name = "companyName", value = "用户所在公司", example = "百度")
    private String companyName;

}
